/* 
 * Header file for Triangle
 * Programming by SochiX (http://sochix.ru)
 */

#ifndef _TRIANGLE_HPP
#define _TRIANGLE_HPP

#include "rt_object.hpp"
#include "vector3D.hpp"
#include "point3D.hpp"
#include "plane.hpp"
#include "../def.hpp"
#include "../graph/color.hpp"

#include <math.h> 


class Triangle: public Plane
{
	private:
	public:
	Triangle(Point3D pos,Point3D B, Point3D C, Material nMat):Plane(pos,B,C,nMat) {};
   	virtual bool Intersect(Ray& intersectRay, double&);

};

#endif	/* _TRIANGLE_HPP */
